/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.function;

/**
 *
 * @author dell
 */
import entity.structure.User;
import java.io.Serializable;
public class Requset implements Serializable
{
//columns_______________________________________________________________________    
private String value;
private String type;
private String query;
private User user;
//functions_____________________________________________________________________
     //operator_________________________________________________________________
public Requset()
{
     
}
public Requset(String value,String type,String query,User user)
{
     this.value=value;
     this.type=type;
     this.query=query;
     this.user=user;
}
     //getter___________________________________________________________________
public String getValue() 
{
     return value;
}
public String getType() 
{
     return type;
}
public String getQuery() 
{
     return query;
}
public User getUser()
{
     return this.user;
}
     //setter___________________________________________________________________
public void setValue(String value) 
{
     this.value = value;
}
public void setType(String type) 
{
     this.type = type;
}
public void setQuery(String query) 
{
     this.query = query;
}
public void setUser(User user)
{
     this.user=user;
}
     //operator_________________________________________________________________
public int getLevel()
{
     return user.getUsertype();
}
     //toString_________________________________________________________________
@Override
public String toString()
{
     return value+"\t"+type+"\t"+query;
}
}
